package com.deng.api.service;

import com.deng.api.dto.UserDTO;
import com.deng.api.entity.AuthUser;
import com.deng.api.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.deng.api.vo.UserPassVO;
import com.deng.commons.common.BaseResult;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Set;

/**
 * <p>
 * 系统用户表 服务类
 * </p>
 *
 * @author deng
 * @since 2022-08-10
 */
public interface ISysUserService extends IService<SysUser> {
    AuthUser getUserByUserName(String username);
    BaseResult modifyPassword(UserPassVO userPassVO);
    BaseResult uploadAvatar(MultipartFile multipartFile);
    BaseResult getUsers(Integer page, Integer size, UserDTO userDTO);
    BaseResult delete(Set<Long> ids);
    BaseResult addUser(SysUser sysUser);
    BaseResult editUser(SysUser sysUser);
    void download(HttpServletResponse response);
    BaseResult listConsultant(Long companyId);
}
